package com.prft.rms.entity;

// Generated Aug 18, 2009 4:13:41 PM by Hibernate Tools 3.2.1.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * SkillCategory generated by hbm2java
 */
@Entity
@Table(name = "SKILL_CATEGORY", catalog = "RMS")
public class SkillCategory implements java.io.Serializable {

	private Integer skillCategoryId;
	private String skillCategoryName;
	private String skillCategoryDescription;
	private Set<SkillCategorySkillInfo> skillCategorySkillInfos = new HashSet<SkillCategorySkillInfo>(0);
	private Set<SkillCategoryEmployee> skillCategoryEmployees = new HashSet<SkillCategoryEmployee>(0);

	public SkillCategory() {
	}

	public SkillCategory(String skillCategoryName) {
		this.skillCategoryName = skillCategoryName;
	}

	public SkillCategory(String skillCategoryName, String skillCategoryDescription,
			Set<SkillCategorySkillInfo> skillCategorySkillInfos, Set<SkillCategoryEmployee> skillCategoryEmployees) {
		this.skillCategoryName = skillCategoryName;
		this.skillCategoryDescription = skillCategoryDescription;
		this.skillCategorySkillInfos = skillCategorySkillInfos;
		this.skillCategoryEmployees = skillCategoryEmployees;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SKILL_CATEGORY_ID", unique = true, nullable = false)
	public Integer getSkillCategoryId() {
		return this.skillCategoryId;
	}

	public void setSkillCategoryId(Integer skillCategoryId) {
		this.skillCategoryId = skillCategoryId;
	}

	@Column(name = "SKILL_CATEGORY_NAME", nullable = false, length = 100)
	public String getSkillCategoryName() {
		return this.skillCategoryName;
	}

	public void setSkillCategoryName(String skillCategoryName) {
		this.skillCategoryName = skillCategoryName;
	}

	@Column(name = "SKILL_CATEGORY_DESCRIPTION")
	public String getSkillCategoryDescription() {
		return this.skillCategoryDescription;
	}

	public void setSkillCategoryDescription(String skillCategoryDescription) {
		this.skillCategoryDescription = skillCategoryDescription;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "skillCategory")
	public Set<SkillCategorySkillInfo> getSkillCategorySkillInfos() {
		return this.skillCategorySkillInfos;
	}

	public void setSkillCategorySkillInfos(Set<SkillCategorySkillInfo> skillCategorySkillInfos) {
		this.skillCategorySkillInfos = skillCategorySkillInfos;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "skillCategory")
	public Set<SkillCategoryEmployee> getSkillCategoryEmployees() {
		return this.skillCategoryEmployees;
	}

	public void setSkillCategoryEmployees(Set<SkillCategoryEmployee> skillCategoryEmployees) {
		this.skillCategoryEmployees = skillCategoryEmployees;
	}

}
